package com.guaika.reggie.common;

/**
 * @author GuaiKa
 * 线程工具类封装，用于获取和保存用户id
 */
public class BaseContext {
    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void set(Long id){
        threadLocal.set(id);
    }

    public static Long get(){
        return threadLocal.get();
    }
}
